package com.ebei.admin.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 字典
 * @author crazypenguin
 * @version 1.0
 * @created 2018/4/17
 */
@Data
@TableName("sys_dict")
public class SysDict extends Model<SysDict> {

    private static final long serialVersionUID = 1L;

    // 编号
	@TableId(value="id", type= IdType.AUTO)
	private Integer dictId;

	@TableField("dict_name")
	private String dictName;

	@TableField("dict_code")
	private String dictCode;

	@TableField("dict_desc")
	private String dictDesc;

	@TableField("create_time")
	private Date createTime;

	@TableField("update_time")
	private Date updateTime;

	@TableField("del_flag")
	private String delFlag;

	@TableField("company_id")
	private Integer companyId;

	@Override
	protected Serializable pkVal() {
		return this.dictId;
	}

}
